@import "./mixins/mixin.scss";

@include b(pagination-a) {
  --item-disabled-color:#A2A6B1;
  --item-color: #4F4F4F;
  --item-active-color: var(--color-primary);
  --item-size-medium: 20px;
  --item-font-size-medium: var(--text-size-mini);

  --item-size-large: 24px;
  --item-font-size-large: var(--text-size-small);
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 26px 22px;
  color: rgba(0, 0, 0, 0.85);
  font-size: var(--item-font-size-medium);
  font-variant: tabular-nums;
  line-height: 1.5715;
  list-style: none;
  font-feature-settings: tnum;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  a {
    text-decoration: none;
   
  }
  :focus-visible {
    outline: -webkit-focus-ring-color auto 1px;
}

  a:hover {
    outline: 0;
    text-decoration: none!important;
  }
  @include e(item) {
    position: relative;
    display: inline-block;
    min-width: var(--item-size-medium);
    height: var(--item-size-medium);
    color: var(--item-color);
    line-height: var(--item-size-medium);
    text-align: center;
    vertical-align: middle;
    list-style: none;
    user-select: none;
    cursor: pointer;
    // transition: all 0.3s;
    margin-right: var( --space-size-default );
    &:hover {
      outline: 0;
      // transition: all .3s;
    }

    &:last-of-type {
      margin-right: 0;
    }
    span {
      vertical-align: 0;
    }

    svg {
      font-size: var(--item-font-size-medium);
    }
    > a {
      display: block;
      padding: 0;
      color: var(--item-color);
      // transition: none;
     
      &:hover {
        text-decoration: none;
      
      }
    }
    @include when(active) {
      color: var(--item-active-color);
      > a {
        color: var(--item-active-color);
      } 
    }

    @include when(disabled) {
      cursor: not-allowed;
      color: var( --item-disabled-color);
      > a {
        cursor: not-allowed;
        color: var( --item-disabled-color);
      } 
    }


    @include m(large){
      font-size: var(--item-font-size-large);
      min-width: var(--item-size-large);
      height: var(--item-size-large);
   
      line-height: var(--item-size-large);
     
    }
  
  }

  @include m(medium){

  }
  @include m(large){
    
     
  }
  @include e(limit) {
   color:#A2A6B1;
    
  }
  @include e(info) {
    color:#A2A6B1;
     
   }
  @include e(limit-select) {
    width: 100%;
    position: absolute;
    left: 22px;
    bottom: 50px;
    
  }
  @include e(dropdown) {
    
    background-color: #fff;
    border-radius: 2px;
    border: 1px solid #e6eaee;
    z-index: 1001;
    overflow: auto;
    width: 100%;
    max-height: 300px;
    min-width: 80px;
    max-width: 80px;
    position: relative;
    left: 0;
    bottom: 0;
  }
  @include e(dropdown-item) {
    cursor: pointer;
    user-select: none;
    text-align: center;
    border-bottom: 1px solid #e6eaee;
    line-height: 28px;
    &:last-child {
      border-bottom:0;
    }
    &.active {
      color:var(--item-active-color)
    }
  }
}
